package com.hundsun.documentripper.mapper;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.hundsun.documentripper.domain.pojo.Product;

/**
 * Note：
 *
 * @author ：mengjw
 * @description：产品Mapper
 * @date ：Created in 2021/1/26
 */
public interface ProductMapper extends BaseMapper<Product> {

    /**
     * 查询用户产品
     *
     * @param page
     * @param wrapper
     * @return
     */
    @Select("select * from product ${ew.customSqlSegment}")
    IPage<Product> selectPageByUser(Page<?> page, @Param(Constants.WRAPPER) Wrapper<Product> wrapper);

}